package cn.yitun.chat.yitunservercommonlib.converter.po2vo.contact;


import cn.yitun.chat.yitunservercommonlib.dataentity.po.contact.ContactRelationInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactRelationVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ContactRelationPo2VoConverter {

    ContactRelationPo2VoConverter INSTANCE = Mappers.getMapper(ContactRelationPo2VoConverter.class);

    ContactRelationInfo vo2po(ContactRelationVo vo);

    List<ContactRelationInfo> vo2po(List<ContactRelationVo> voList);

    @InheritInverseConfiguration
    ContactRelationVo po2vo(ContactRelationInfo dto);

    @InheritInverseConfiguration
    List<ContactRelationVo> po2vo(List<ContactRelationInfo> dtoList);
}
